package me.trytofeel.bean;

import java.util.Arrays;
import java.util.List;

public class Teacher {
    private String tName;
    private Course[] courses;
    private List<Student> students;

    public Teacher() {
    }

    public Teacher(String tName, Course[] courses, List<Student> students) {
        this.tName = tName;
        this.courses = courses;
        this.students = students;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public Course[] getCourses() {
        return courses;
    }

    public void setCourses(Course[] courses) {
        this.courses = courses;
    }

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tName='" + tName + '\'' +
                ", courses=" + Arrays.toString(courses) +
                ", students=" + students +
                '}';
    }
}
